/**
 * 
 */
package mdb.com.vn.persist;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import mdb.com.vn.model.Loans;

/**
 * @author tu.dod
 *
 */
public interface LoansDAO extends AbstractDAO<Loans, Integer> {
	public List<Loans> findByPersionalType(int type);
	public List<Loans> findByCorporateType(int type);
	public List<Loans> findByStatusLoans(String status);
	public List<Loans> findByLoansProcessDateAndStaus(String status,Date processDate);
	public void addLoansLuckyDrawByScript(String createdBy, Date processDate);
	public Date getLastUpdated(String module);
	public List<Date> getDatesUpdated(String module);
	public BigDecimal sumAmount(String status);
	
	public List<Object> findByPropertiesToExcell(String status,Date processDate);
	public List<Object> findByPropertiesToExcell(String status);
}
